import { http } from '@/utils';
import { ResType } from './shared';
export type DetailDataType = {
    art_id:string,
    attutude:number,
    aut_id:string,
    aut_name:string,
    aut_photo:string,
    comm_count:number,
    pubdate:string,
    read_count:number,
    title:string,
    content:string,
}

export function fetDetailAPI(id:string){
    return http.request<ResType<DetailDataType>>({
        url:`/articles/${id}`,
    })
}